<% provide :page_title, construct_page_title(@presenter.title) %>
<div itemscope itemtype="http://schema.org/CollectionPage" class="row">
  <div class="col-sm-10 pull-right">
    <header>
      <%= render 'collection_title', presenter: @presenter %>
    </header>
    <%= render 'collection_description', presenter: @presenter %>

    <% unless has_collection_search_parameters? %>
      <%= render 'collections/show_descriptions' %>
    <% end %>
  </div>
  <div class="col-sm-2">
    <%= render 'collections/media_display', presenter: @presenter %>
    <% unless has_collection_search_parameters? %>
      <%= render 'collections/show_actions', presenter: @presenter %>
    <% end %>
  </div>
</div>

<div class="row">
  <h2 class="col-xs-6 col-md-7 col-lg-6">
    <% if has_collection_search_parameters? %>
        Search Results within this Collection
    <% else %>
        Items in this Collection
    <% end %>
  </h2>
  <div class="col-xs-6 col-md-5 col-lg-6"><%= render 'search_form', presenter: @presenter %></div>
</div>

<%= render 'sort_and_per_page', collection: @presenter %>

<%= render_document_index @member_docs %>

<%= render 'paginate' %>
